<?php

require_once("../private/system/dycmsapi.php");

try {
	
dyInit();
uiLoadLibrary('client');
uiLoadLibrary('page');
uiLoadLibrary('template');

//
// Create the page
//

$page = new cUiPageTemplate( <<<END
<div id="centre">
			<div class="LeftShad">&nbsp;</div>
			<div class="RightShad">&nbsp;</div>
			<div class="LeftShadMask">&nbsp;</div>
			<div class="RightShadMask">&nbsp;</div>
			<div class="BottomShad">&nbsp;</div>
			<div class="BottomLeftShad">&nbsp;</div>
			<div class="BottomRightShad">&nbsp;</div>
			<div id="topBar">
				<ul id="topNav">
					<li class="lblGames selected">[[Home->name=index->site=dysoft]]</li>
					<li class="lblShop">[[Products->name=products->site=dysoft]]</li>
					<li class="lblFriends">[[Services->name=services->site=dysoft]]</li>
					<li class="lblClans">[[About Us->name=about->site=dysoft]]</li>
				</ul>
				<span id="topGamerID">
					<div class="lblLogoSmall">Dynamo Studios</div>
				</span>
			</div>
			<div id="topSection">
				<div id="mainWidget">
				</div>
				<div id="mainLogo">
					{{tplDropZone->mainWidget}}
				</div>
			</div>
			<div id="mainTitle">&nbsp;</div>
			
			<div class="ContentSplitCtr"><div class="ContentLeftSplit">
				<div class="ContentRightSplit">
					<div id="modSearch">{{module->modTagSearch}}</div>
					{{tplModules}}
				</div>
						{{tplContent}}
			</div>
			<div class="ContentSplitEnd"></div></div>
			
			<div id="bigFooter">
				<table>
					<tr>
						<th>[[Portal->name=index->site=dysoft]]</th><th>[[Products->name=products->site=dysoft]]</th><th>[[Services->name=services->site=dysoft]]</th><th>[[About Us->name=about->site=dysoft]]</th>
					</tr>
					<tr>
						<td>[[News->name=modNews]]</td><td>[[Dynamo CMS->name=cms]]</td><td>[[Web Design->name=web]]</td><td>[[Contact Us->name=contact->site=dysoft]]</td>
					</tr>
					<tr>
						<td>{{view->title=Blogs->clsid=Article}}</td><td>[[Choqolate]]</td><td><a href="wtfomg/">WTF OMG</a></td><td>[[The Team]]</td>
					</tr>
					<tr>
						<td>{{view->title=Forums->clsid=Forum}}</td><td>[[WTFEngine->name=wtfengine]]</td><td>[[Web Design->name=web]]</td><td>[[Jobs->name=jobs->site=dysoft]]</td>
					</tr>
				</table>
			</div>
		</div>
END
);

$page->AddHtmlHeader(<<<HTMLEND
<link rel="stylesheet" href="style.css">
HTMLEND
);

$page->AddModule(new modLogin());
$page->AddModule(new cAdminMenuModule());

processCmsCommands($page, 'wtfomg');

$page->Display();

dyEnd();

}
catch(Exception $e)
{
	$ex = new cUiException($e);
	$ex->Display();
}

?>